using Microsoft.Extensions.DependencyInjection;
using TerritoryGame.Domain.Services;
using TerritoryGame.Application.Services;

namespace TerritoryGame.Application;

public static class DependencyInjection
{
    public static IServiceCollection AddApplication(this IServiceCollection services)
    {
        // 注册领域服务
        services.AddScoped<IAreaCalculationService, AreaCalculationService>();
        services.AddScoped<IGameStateService, GameStateService>();
        services.AddScoped<IConflictResolutionService, ConflictResolutionService>();
        
        // 注册应用服务
        services.AddScoped<IRealTimePaintService, RealTimePaintService>();
        
        return services;
    }
} 